/* stylelint-disable at-rule-no-unknown */
/* stylelint-disable-next-line import-notation */
@import 'tailwindcss';

@theme {
  --animate-wiggle: wiggle 1s ease-in-out infinite;
  --animate-hue-rotate: hue-rotate 5s infinite linear;
  --animate-slide-in-left: slide-in-left 1s;
  --animate-slide-in-right: slide-in-right 1s;

  @keyframes wiggle {
    0%,
    100% {
      transform: rotate(-3deg);
    }

    50% {
      transform: rotate(3deg);
    }
  }

  @keyframes hue-rotate {
    from {
      filter: hue-rotate(0deg);
    }

    to {
      filter: hue-rotate(-360deg);
    }
  }

  @keyframes slide-in-left {
    from {
      transform: translate3d(-100%, 0, 0);
      visibility: visible;
    }

    to {
      transform: translate3d(0, 0, 0);
    }
  }

  @keyframes slide-in-right {
    from {
      transform: translate3d(100%, 0, 0);
      visibility: visible;
    }

    to {
      transform: translate3d(0, 0, 0);
    }
  }

  --animate-wui-slide-right: wui-slide-right 2s linear infinite;
  --animate-wui-slide-down: wui-slide-down 2s linear infinite;
  --animate-wui-slide-left: wui-slide-left 2s linear infinite;
  --animate-wui-slide-up: wui-slide-up 2s linear infinite;

  @keyframes wui-slide-right {
    0% {
      transform: translateX(-100%);
    }

    100% {
      transform: translateX(100%);
    }
  }

  @keyframes wui-slide-down {
    0% {
      transform: translateY(-100%);
    }

    100% {
      transform: translateY(100%);
    }
  }

  @keyframes wui-slide-left {
    0% {
      transform: translateX(100%);
    }

    100% {
      transform: translateX(-100%);
    }
  }

  @keyframes wui-slide-up {
    0% {
      transform: translateY(100%);
    }

    100% {
      transform: translateY(-100%);
    }
  }
}

.hue-clip {
  color: var(--color-red-pers);
  background-image: linear-gradient(92deg, var(--color-red-pers), var(--color-yellow-saff));
}

.text-gradient {
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/*
  The default border color has changed to `currentColor` in Tailwind CSS v4,
  so we've added these compatibility styles to make sure everything still
  looks the same as it did with Tailwind CSS v3.

  If we ever want to remove these styles, we need to add an explicit border
  color utility to any element that depends on these defaults.
*/
@layer base {
  *,
  ::after,
  ::before,
  ::backdrop,
  ::file-selector-button {
    border-color: var(--color-gray-200, currentColor);
  }
}

:root {
  --background: #fff;
  --foreground: #171717;
  --duration: 0.5;
  --color-gray-200: #e5e7eb;
  --color-red-pers: #f35626;
  --color-yellow-saff: #feab3a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
  }
}

html,
body {
  height: 100%;
  overflow: hidden;
  text-size-adjust: 100%;
  box-sizing: border-box;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-thumb {
  background: #7e7e7e;
  border-radius: 3px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
  transition:
    background-color 600000s ease-in-out 0s,
    color 600000s ease-in-out 0s;
}

.text-nowrap {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.text-more-line-nowrap {
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#root {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader:empty {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5rem !important;
  height: 1.5rem !important;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  animation: loading 1.1s infinite linear;
  border: 2px solid #0003;
  border-left: 2px solid #1890ff;
}

@keyframes loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.layout-footer {
  text-align: center;
  font-size: 14px;
  height: 40px;
  line-height: 40px;
  padding: 0 !important;
}

.wui-ant-layout-header {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.wui-ant-breadcrumb-separator {
  line-height: 56px;
}

.layout-header {
  padding-left: 20px !important;
}

.layout-content {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.layout-container {
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.layout-container .wui-ant-tabs-content > .wui-ant-tabs-tabpane {
  padding: 0 4px 8px 8px;
}

.layout-container .pro-tabs {
  z-index: 10;
  margin-bottom: 0;
}

.layout-container .layout-tabpanel {
  width: 100%;
  min-height: calc(100vh - 204px);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
